#!/bin/bash
#function: git pull for gitlab webhook 
#parmeter:
#author:
#version:0.1
#Test:CentOS6
echo "begin=======" >>/mnt/gitlab.log
echo ` date +%F" "%T ` >>/mnt/gitlab.log


cd /usr/share/nginx/html
git pull 2>&1 >>/mnt/gitlab.log


echo ` date +%F" "%T ` >> /mnt/gitlab.log
echo "end======"  >> /mnt/gitlab.log





